package com.xiaoyu.lanling.feature.chat.viewholder

import `in`.srain.cube.views.list.ViewHolderBase
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.xiaoyu.lanling.feature.chat.model.message.ChatMessageBaseItem

abstract class ChatMessageBaseViewHolder<T : ChatMessageBaseItem> : ViewHolderBase<T>() {

    protected abstract fun doCreateView(layoutInflater: LayoutInflater, parent: ViewGroup): View?

    override fun createView(layoutInflater: LayoutInflater, parent: ViewGroup): View? {
        return doCreateView(layoutInflater, parent)
    }

    val itemData: T
        get() = mItemData
}